package wty.sample.framework.flow;

import wty.framework.flow.*;

public class CheckPlatformRunningState extends AbstractState {
	@Override
	protected AbstractState process(FlowSession session) {
		System.out.println("檢查平台是否執行中？");
		if(Utils.rand.nextBoolean()) {			
			System.out.println("目前平台正在執行。");
			return new CheckFilesInWorkingSpaceState();
		} else {
			System.out.println("目前平台沒有在執行。");
			return new CopyCDRToWorkingSpaceState();
		}
	}
}
